package edu.neu.springcloud.dao;

import edu.neu.springcloud.entity.Commodity;
import edu.neu.springcloud.entity.Factory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FactoryDao {
    public List<Factory> list(Factory factory);
    public boolean add(Factory factory);
    public boolean update(Factory factory);
    public boolean delete(Long id);

}
